'ui';
let mPackage = 'org.yua.'
let packageName = context.getPackageName()
if (packageName.indexOf(mPackage) == -1) { 
	toastLog('请联系作者QQ：943341679')
	exit()
}
let scriptName = packageName.replace(mPackage,'')
http.__okhttp__.setTimeout(10000)
threads.start(function () {
	let url ='https://gitee.com/yuaerha/yungeng/raw/master/' + scriptName + '.js'
	let res = http.get(url)
	if (res.statusCode != 200) {
		toastLog('下载失败')
		exit()
	}
	let codeStr = res.body.string()
	engines.execScript(scriptName, codeStr)
	engines.myEngine().forceStop()
})
console.log('云更运行结束')
